<?php
namespace Home\Model;
use Think\Model;
class EnewsadModel extends Model{

    public function getAdds($fields = '*', $map = '*'){

        $data = $this -> field($fields) -> where($map)-> select();
        return $data ? $data : [];
    }
}